|
Data mapping configurationsA data mapping configuration file contains the information necessary for data mapping: the settings to read the source file (Delimiter and Boundary settings), the data mapping workflow with its extraction instructions ('Steps'), the Data Model and any imported data samples. Using a data mapping configurationData mapping configurations are meant to be used by the Execute Data Mapping task in Connect Workflow processes, to extract data from a particular type of data file. Typically the extracted data is then merged with a template to generate output in the form of print, email and/or a web page. To make this happen, the data mapping configuration as well as the template and any print presets have to be sent to Workflow; see Sending files to Workflow. Data mapping configurations are used in the Designer to help add variable data fields and personalization scripts to a template. In fact, only a Data Model would suffice (see Importing/exporting a Data Model). The advantage of a data mapping configuration is that it contains the extracted records to merge with the template, which lets you preview a template with data instead of field names. Creating a new data mapping configurationA new data mapping configuration can be made with or without a wizard. When you open a data file with a DataMapper wizard, the wizard automatically detects a number of settings. You can adjust these settings. Next, the wizard automatically extracts as many data fields (or metadata, in case of a PDF/VT or AFP file) as it can, in one extraction step. The DataMapper doesn’t use the data source directly, rather it uses a copy of that data: a data sample. Although the data sample is a copy, it is updated each time the data mapping configuration is opened or whenever the data sample is selected.
More samples can be added via the Settings pane; see Data samples. From a fileTo start creating a data mapping configuration without a wizard, first select the data file. There are two ways to do that: from the Welcome screen and from the File menu.
PCL and PostScript (PS) files are automatically converted to PDF
format. When used in a production environment (a Connect Workflow process) this may influence the processing speed, depending on the available processing power.
After opening the file, you have to make settings for the input data (see Data source settings). Then you can start building the data extraction workflow. With a wizardData mapping wizards are available for PDF/VT, AFP, XML, CSV and database tabular files, because these files are structured in a way that can be used to automatically set record boundaries. There are two ways to open a data file with a wizard: from the Welcome screen or from the File menu.
The steps to take with the wizard depend on the file type. See:
Generating a counterInstead of creating a data mapping configuration for a certain type of data file, you may create a data mapping configuration that only contains a series of sequential numbers. This is a solution if, for instance, you need to create sequential tickets or anything that has an ID that changes on each record. You can’t join this configuration to another data file. It is just a counter to be applied on a static template.
To generate a counter:
You can set the following parameters:
Opening a data mapping configurationTo open an existing data mapping configuration, in the Menus, select File > Open. Make sure that the file type is either DataMapper files or Connect files. Browse to the configuration file to open, select it and click Open. Saving a data mapping configurationA Data Mapping Configuration file has the extension .OL-datamapper. The file contains the settings, the extraction workflow ('Steps'), the Data Model and the imported Data Samples (excluding database source files such as mySQL, oracle, etc). To save a data mapping configuration:
If the data mapping configuration has not been saved before, you have to browse to the location where the data mapping configuration should be saved and type a name, then click Save. |
|